package br.com.poc.pitagorasnumero.view.activity;

import roboguice.activity.RoboFragmentActivity;
import roboguice.inject.ContentView;
import roboguice.inject.InjectView;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import br.com.poc.pitagorasnumero.R;
import br.com.poc.pitagorasnumero.view.dialog.DateBirthDialog;

import com.google.inject.Inject;

@ContentView(R.layout.date_birth_activity)
public class DateBirthActivity extends RoboFragmentActivity implements
		OnClickListener {

	/** The edt dt nasc. */
	@InjectView(R.id.btn_dtbirth)
	private Button btnDtBirth;

	@Inject
	private DateBirthDialog dialog;

	/*
	 * (non-Javadoc)
	 * 
	 * @see roboguice.activity.RoboActivity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setOnclick();
	}

	/**
	 * Sets the onclick.
	 */
	private void setOnclick() {
		this.btnDtBirth.setOnClickListener(this);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see android.view.View.OnClickListener#onClick(android.view.View)
	 */
	@Override
	public void onClick(View view) {
		switch (view.getId()) {
		case R.id.btn_ok:

			break;

		case R.id.btn_dtbirth:
			dialog.show(getSupportFragmentManager(),
					NameFullActivity.class.getSimpleName());

			break;

		default:
			break;
		}
	}
}
